Industry 4.0 requires simple solutions for complex functions. Optical sensors, such as pinhole cameras, can deliver a depth of focus and reasonable resolution, but they suffer from low intensity for reliable and fast imaging. This requires a long exposure time, which sacrifices fast imaging capability and limits their real-world usage in self-driving cars.